package com.example.xinli.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.xinli.domain.vo.MoodDiaryVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 *
 * @TableName user
 */
@TableName(value ="mood_diary_tb")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MoodDiary implements Serializable {

    @TableField(value = "diary_id")
    @TableId(type = IdType.AUTO)
    private int diaryId;

    @TableField(value = "user_id")
    private String userId;

    @TableField(value = "diary_content")
    private String diaryContent;

    @TableField(value = "diary_date")
    private String diaryDate;

    @TableField(value = "diary_mood")
    private String diaryMood;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public MoodDiary(String userId, String diaryContent, String diaryDate, String diaryMood) {
        this.userId = userId;
        this.diaryContent = diaryContent;
        this.diaryDate = diaryDate;
        this.diaryMood = diaryMood;
    }
}